const Mysql=require('./base')

class Orders extends Mysql{
  async getOrders(orderId,total,nums,state){
    let result = await this.insert('INSERT INTO orders(orderId,createtime,total,nums,state)VALUE(?,NOW(),?,?,?)',[orderId,total,nums,state])
    return result.rows
  }
}
module.exports=new Orders()